export default [
  // 工作台
  {
    path: "/",
    name: "home",
    meta: {
      title: "工作台",
      auth: ["访客"],
    },
    component: () =>
      import(/* webpackChunkName: "home" */ "../views/home/home/index.vue"),
  },
  // 文章管理
  {
    path: "/article",
    name: "article",
    meta: {
      title: "所有文章",
      crumbs: ["所有文章"],
      auth: ["访客"],
    },
    component: () =>
      import(
        /* webpackChunkName: "article" */ "../views/home/article/index.vue"
      ),
  },
  // 文章管理 分类管理
  {
    path: "/article/classify",
    name: "classify",
    meta: {
      title: "分类管理",
      crumbs: ["文章管理", "分类管理"],
      auth: ["访客"],
    },
    component: () =>
      import(
        /* webpackChunkName: "classify" */ "../views/home/article/classify/index.vue"
      ),
  },
  // 文章管理 标签管理
  {
    path: "/article/tags",
    name: "tags",
    meta: {
      title: "标签管理",
      crumbs: ["文章管理", "标签管理"],
      auth: ["访客"],
    },
    component: () =>
      import(
        /* webpackChunkName: "tags" */ "../views/home/article/tags/index.vue"
      ),
  },
  // 页面管理
  {
    path: "/page",
    name: "page",
    meta: {
      title: "页面管理",
      crumbs: ["页面管理"],
      auth: ["访客"],
    },
    component: () =>
      import(/* webpackChunkName: "page" */ "../views/home/page/index.vue"),
  },
  // 知识小册
  {
    path: "/knowledge",
    name: "knowledge",
    meta: {
      title: "知识小册",
      crumbs: ["知识小册"],
      auth: ["访客"],
    },
    component: () =>
      import(
        /* webpackChunkName: "knowledge" */ "../views/home/knowledge/index.vue"
      ),
  },
  // 海报管理
  {
    path: "/poster",
    name: "poster",
    meta: {
      title: "海报管理",
      crumbs: ["海报管理"],
      auth: ["访客"],
    },
    component: () =>
      import(/* webpackChunkName: "poster" */ "../views/home/poster/index.vue"),
  },
  // 评论管理
  {
    path: "/comment",
    name: "comment",
    meta: {
      title: "评论管理",
      crumbs: ["评论管理"],
      auth: ["访客"],
    },
    component: () =>
      import(
        /* webpackChunkName: "comment" */ "../views/home/comment/index.vue"
      ),
  },
  // 邮件管理
  {
    path: "/email",
    name: "email",
    meta: {
      title: "邮件管理",
      crumbs: ["邮件管理"],
      auth: ["访客"],
    },
    component: () =>
      import(/* webpackChunkName: "email" */ "../views/home/email/index.vue"),
  },
  // 文件管理
  {
    path: "/file",
    name: "file",
    meta: {
      title: "文件管理",
      crumbs: ["文件管理"],
      auth: ["访客"],
    },
    component: () =>
      import(/* webpackChunkName: "file" */ "../views/home/file/index.vue"),
  },
  // 搜索记录
  {
    path: "/search",
    name: "search",
    meta: {
      title: "搜索记录",
      crumbs: ["搜索记录"],
      auth: ["访客"],
    },
    component: () =>
      import(/* webpackChunkName: "search" */ "../views/home/search/index.vue"),
  },
  // 访问统计
  {
    path: "/visit",
    name: "visit",
    meta: {
      title: "访问统计",
      crumbs: ["访问统计"],
      auth: ["访客"],
    },
    component: () =>
      import(/* webpackChunkName: "visit" */ "../views/home/visit/index.vue"),
  },
  // 用户管理
  {
    path: "/user",
    name: "user",
    meta: {
      title: "用户管理",
      crumbs: ["用户管理"],
      auth: ["管理员"],
    },
    component: () =>
      import(/* webpackChunkName: "user" */ "../views/home/user/index.vue"),
  },
  // 系统设置
  {
    path: "/set",
    name: "set",
    meta: {
      title: "系统设置",
      crumbs: ["系统设置"],
      auth: ["管理员"],
    },
    component: () =>
      import(/* webpackChunkName: "set" */ "../views/home/set/index.vue"),
  },
];
